# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=dsymbol
pkgver=0.10.0
pkgrel=2
pkgdesc="Basic symbol lookup/resolution for libdparse"
url="https://github.com/dlang-community/dsymbol"
arch="x86_64 aarch64" # ldc
license="BSL-1.0"
makedepends="meson ldc ldc-runtime stdx-allocator-dev libdparse-dev dcontainers-dev"
subpackages="$pkgname-dev"
source="https://github.com/dlang-community/dsymbol/archive/v$pkgver/dsymbol-$pkgver.tar.gz"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="e421f3e4b35ad4ae585a8ac7d3f227494c1457326889fc982406bec4b30edfd9c0b69f35cbbb0bcba7a6382bc5c9414a86802104c43a606e3cb9572a56b549fa  dsymbol-0.10.0.tar.gz"
